from py2neo import Graph, Node, Relationship

# Graph()中第一个为local host链接，auth为认证，包含 username 和 password
gragh = Graph('bolt://localhost:7687', auth=('neo4j', '12345678'))

a = Node("hero", name="Clint")  # Node(label, name)
b = Node("hero", name="Natasha")
ab = Relationship(a, "friend", b)
gragh.create(ab)
